This is an automated email from the ASF dual-hosted git repository.
fhanik pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 916f72d Add compilation support for Graal 21.3
916f72d is described below
commit 916f72d5cbf06f45260f669283852731d548d0d3
Author: Filip Hanik <[email protected]>
AuthorDate: Mon Jan 3 09:27:34 2022 -0800
Add compilation support for Graal 21.3
---
res/graal/build-tomcat-native-image.sh | 2 +-
test/org/apache/catalina/startup/EmbeddedTomcat.java | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/res/graal/build-tomcat-native-image.sh
b/res/graal/build-tomcat-native-image.sh
index ec99d53..81370ee 100755
--- a/res/graal/build-tomcat-native-image.sh
+++ b/res/graal/build-tomcat-native-image.sh
@@ -49,7 +49,7 @@ native-image \
-H:EnableURLProtocols=http \
--report-unsupported-elements-at-runtime \
--initialize-at-run-time=org.apache,jakarta.servlet \
--H:+TraceClassInitialization \
+-H:TraceClassInitialization=org.* \
-H:+PrintClassInitialization \
-H:+PrintAnalysisCallTree \
-H:Name=tc-graal-image \
diff --git a/test/org/apache/catalina/startup/EmbeddedTomcat.java
b/test/org/apache/catalina/startup/EmbeddedTomcat.java
index 8b5c12c..b83f7e8 100644
--- a/test/org/apache/catalina/startup/EmbeddedTomcat.java
+++ b/test/org/apache/catalina/startup/EmbeddedTomcat.java
@@ -28,6 +28,7 @@ import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
+import org.apache.tomcat.util.modeler.Registry;
import org.junit.Ignore;
import org.apache.catalina.Context;
@@ -55,6 +56,7 @@ public class EmbeddedTomcat {
}
public static void main(String... args) throws Exception {
+ Registry.disableRegistry();
Tomcat tomcat = new Tomcat();
resetLogging();
tomcat.setPort(8080);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]