8144583: Test sanity/ExecuteInternalVMTests.java fails
authortschatzl
Sat, 05 Dec 2015 15:16:01 +0100
changeset 34649 0c719dcb4507
parent 34648 b7ea5d095ef5
child 34650 b4b00fdee76b
8144583: Test sanity/ExecuteInternalVMTests.java fails Summary: Remove a test that is highly dependent on timing. Reviewed-by: jwilhelm
hotspot/src/share/vm/gc/g1/heapRegionRemSet.cpp
hotspot/src/share/vm/gc/g1/heapRegionRemSet.hpp
hotspot/src/share/vm/prims/jni.cpp
--- a/hotspot/src/share/vm/gc/g1/heapRegionRemSet.cpp	Sat Dec 05 05:15:35 2015 -0500
+++ b/hotspot/src/share/vm/gc/g1/heapRegionRemSet.cpp	Sat Dec 05 15:16:01 2015 +0100
@@ -1020,24 +1020,6 @@
 }
 
 #ifndef PRODUCT
-void PerRegionTable::test_fl_mem_size() {
-  PerRegionTable* dummy = alloc(NULL);
-
-  size_t min_prt_size = sizeof(void*) + dummy->bm()->size_in_words() * HeapWordSize;
-  assert(dummy->mem_size() > min_prt_size,
-         "PerRegionTable memory usage is suspiciously small, only has " SIZE_FORMAT " bytes. "
-         "Should be at least " SIZE_FORMAT " bytes.", dummy->mem_size(), min_prt_size);
-  free(dummy);
-  guarantee(dummy->mem_size() == fl_mem_size(), "fl_mem_size() does not return the correct element size");
-  // try to reset the state
-  _free_list = NULL;
-  delete dummy;
-}
-
-void HeapRegionRemSet::test_prt() {
-  PerRegionTable::test_fl_mem_size();
-}
-
 void HeapRegionRemSet::test() {
   os::sleep(Thread::current(), (jlong)5000, false);
   G1CollectedHeap* g1h = G1CollectedHeap::heap();
--- a/hotspot/src/share/vm/gc/g1/heapRegionRemSet.hpp	Sat Dec 05 05:15:35 2015 -0500
+++ b/hotspot/src/share/vm/gc/g1/heapRegionRemSet.hpp	Sat Dec 05 15:16:01 2015 +0100
@@ -392,7 +392,6 @@
 
   // Run unit tests.
 #ifndef PRODUCT
-  static void test_prt();
   static void test();
 #endif
 };
--- a/hotspot/src/share/vm/prims/jni.cpp	Sat Dec 05 05:15:35 2015 -0500
+++ b/hotspot/src/share/vm/prims/jni.cpp	Sat Dec 05 15:16:01 2015 +0100
@@ -3933,7 +3933,6 @@
 #if INCLUDE_ALL_GCS
     run_unit_test(TestOldFreeSpaceCalculation_test());
     run_unit_test(TestG1BiasedArray_test());
-    run_unit_test(HeapRegionRemSet::test_prt());
     run_unit_test(TestBufferingOopClosure_test());
     run_unit_test(TestCodeCacheRemSet_test());
     if (UseG1GC) {