src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/BinaryContainer.java
--- a/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/BinaryContainer.java Thu Nov 30 14:25:33 2017 -0800
+++ b/src/jdk.aot/share/classes/jdk.tools.jaotc.binformat/src/jdk/tools/jaotc/binformat/BinaryContainer.java Thu Nov 30 10:40:48 2017 -0800
@@ -65,6 +65,8 @@
private final int codeEntryAlignment;
+ private final boolean threadLocalHandshakes;
+
/**
* Container holding code bits and any other related information.
*/
@@ -279,6 +281,8 @@
this.codeEntryAlignment = graalHotSpotVMConfig.codeEntryAlignment;
+ this.threadLocalHandshakes = graalHotSpotVMConfig.threadLocalHandshakes;
+
// Section unique name is limited to 8 characters due to limitation on Windows.
// Name could be longer but only first 8 characters are stored on Windows.
@@ -323,7 +327,8 @@
TieredAOT.getValue(graalOptions),
graalHotSpotVMConfig.enableContended,
graalHotSpotVMConfig.restrictContended,
- graphBuilderConfig.omitAssertions()
+ graphBuilderConfig.omitAssertions(),
+ graalHotSpotVMConfig.threadLocalHandshakes
};
int[] intFlags = { graalHotSpotVMConfig.getOopEncoding().getShift(),
@@ -434,6 +439,11 @@
return codeEntryAlignment;
}
+ public boolean getThreadLocalHandshakes() {
+ return threadLocalHandshakes;
+ }
+
+
/**
* Gets the global AOT symbol associated with the function name.
*