Skip to content

Commit c7bf65c

Browse files
jbachorikclaude
andcommitted
chaos: grant jdk.internal.misc export so OtelContextStorage uses CARRIER mode
Without --add-exports java.base/jdk.internal.misc=ALL-UNNAMED, OtelContextStorage silently falls back to ContextStorageMode.THREAD, which vthread-context-cascade was built to catch: virtual-thread context buffers pinned to a since-freed carrier's ProfiledThread, corrupting the heap. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent fb6a1e8 commit c7bf65c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

utils/run-chaos-harness.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ rm -f "${HS_ERR}"
174174
timeout "$((RUNTIME + 300))" \
175175
java -javaagent:${PATCHED_AGENT} \
176176
--add-opens java.base/java.lang=ALL-UNNAMED \
177+
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
177178
${ENABLEMENT} \
178179
-Ddd.profiling.upload.period=10 \
179180
-Ddd.profiling.start-force-first=true \

0 commit comments

Comments
 (0)