Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 794 Bytes

FALSE_SHARING.md

File metadata and controls

30 lines (24 loc) · 794 Bytes

False Sharing

We need to export a protected module to our compiler

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.0</version>
    <configuration>
        <source>11</source>
        <target>11</target>

        <compilerArgs>
            <arg>--add-exports</arg>
            <arg>java.base/jdk.internal.m.annotation=ALL-UNNAMED</arg>
        </compilerArgs>
    </configuration>
</plugin>
--add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED -XX:-RestrictContended