RFR: Merge jdk-17-ga

Jiangli Zhou jiangli at openjdk.org
Wed Feb 28 00:00:16 UTC 2024


On Fri, 16 Feb 2024 21:43:43 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

> This is a redo of https://github.com/openjdk/tsan/pull/16 to address the commits issue. Updated description:
> 
> Command: $ git merge --no-ff jdk-17-ga
> 
> Most manual merge for conflicts are mechanical.
> 
> Additional manual updates:
> 
> Add #include "memory/resourceArea.hpp" in src/hotspot/share/tsan/tsanOopMap.cpp to resolve compiler error:
> tsanOopMap.cpp:351:5: error: use of undeclared identifier 'ResourceMark'; did you mean 'ResourceStack'?
> ResourceMark rm;
> ^~~~~~~~~~~~
> ResourceStack
> 
> Remove AMD64_ONLY(assert((id_u8 & left_n_bits(17)) == 0, "jmethodID is not aligned");) in classFileParser.cpp. left_n_bits has been removed by https://bugs.openjdk.org/browse/JDK-8178348
> 
> Change obj_field_addr_raw<oop>() to field_addr() in java_lang_Class::init_lock_addr in javaClasses.cpp.
> 
> Remove ShenandoahTSANWeakRoot::ShenandoahTSANWeakRoot as ShenandoahWeakSerialRoot is removed in shenandoahRootProcessor.cpp.
> 
> Remove JVMWrapper calls in tsan related functions in jvm.cpp. The macro has been removed.
> 
> Change to use current for JRT_ENTRY(void, SharedRuntime::tsan_interp_method_entry(JavaThread* thread)) as JRT_ENTRY macro expects current, sharedRuntime.cpp.
> 
> Change THREAD to current in synchronizer.cpp.
> 
> Tested by running hotspot/jtreg/tsan locally:
> 
> 
> $ bash configure --with-boot-jdk=/usr/local/google/home/jianglizhou/openjdk/jdk-17.0.10 --with-debug-level=release --disable-warnings-as-errors --with-jtreg=/usr/local/google/home/jianglizhou/github/jtreg/build/images/jtreg --with-stdc++lib=static --disable-precompiled-headers --enable-unlimited-crypto --with-native-debug-symbols=internal --with-default-make-target=jdk-image --disable-warnings-as-errors --with-toolchain-type=clang --with-toolchain-path=/usr/local/google/home/jianglizhou/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04 --disable-warnings-as-errors
> 
> $ make test TEST=hotspot/jtreg/tsan
> 
> New runs found more random failures in addition to tsan/NonRacySyncBlockExceptionLoopTest.java. The failed tests appear to be inconsistent, but tsan/NonRacyGarbageCollectionLoopTest.java is more consistently failing.
> 
> Also built and tested using Clang/LLVM 16.0.6. It appears to be working with jdk-17-ga merge.

I checked tsan specific changes in original src/hotspot/share/gc/shared/weakProcessorPhases.cpp and src/hotspot/share/gc/shared/weakProcessorPhases.hpp. The tsan specific changes in those are no longer applicable. https://bugs.openjdk.org/browse/JDK-8212879 made JVMTI tagmap table  walked by GC concurrently, and the serial iterator was removed. I think the tsan test failures that I encountered with 17 merge was related to tagmap change. 

@caoman We can move forward with the review for the jdk 17 merge. I'll do some study on the JDK-8212879 to see how to include the handling for TsanOopMap.

-------------

PR Comment: https://git.openjdk.org/tsan/pull/17#issuecomment-1967933599


More information about the tsan-dev mailing list