< prev index next >

test/hotspot/jtreg/gc/logging/TestPrintReferences.java

Print this page
rev 49910 : imported patch 8202017-reference-processor-remove-enqueue

*** 91,118 **** String refDetailRegex = gcLogTimeRegex + indent(8) + phase2 + ": " + timeRegex + "\n" + gcLogTimeRegex + indent(8) + phase3 + ": " + timeRegex + "\n" + gcLogTimeRegex + indent(8) + "Discovered: " + countRegex + "\n" + gcLogTimeRegex + indent(8) + "Cleared: " + countRegex + "\n"; String softRefDetailRegex = gcLogTimeRegex + indent(8) + phase1 + ": " + timeRegex + "\n" + refDetailRegex; - String enqueueRegex = gcLogTimeRegex + indent(4) + "Reference Enqueuing: " + timeRegex + "\n"; - String enqueueDetailRegex = gcLogTimeRegex + indent(6) + "Reference Counts: Soft: " + countRegex + - " Weak: " + countRegex + " Final: " + countRegex + " Phantom: " + countRegex + "\n"; output.shouldMatch(/* Total Reference processing time */ totalRegex + /* SoftReference processing */ softRefRegex + balanceRegex + softRefDetailRegex + /* WeakReference processing */ weakRefRegex + balanceRegex + refDetailRegex + /* FinalReference processing */ finalRefRegex + balanceRegex + refDetailRegex + /* PhantomReference processing */ ! phantomRefRegex + balanceRegex + refDetailRegex + ! /* Total Enqueuing time */ ! enqueueRegex + ! /* Enqueued Stats */ ! enqueueDetailRegex ); } // After getting time value, update 'output' for next use. public static BigDecimal getTimeValue(String name, int indentCount) { --- 91,111 ---- String refDetailRegex = gcLogTimeRegex + indent(8) + phase2 + ": " + timeRegex + "\n" + gcLogTimeRegex + indent(8) + phase3 + ": " + timeRegex + "\n" + gcLogTimeRegex + indent(8) + "Discovered: " + countRegex + "\n" + gcLogTimeRegex + indent(8) + "Cleared: " + countRegex + "\n"; String softRefDetailRegex = gcLogTimeRegex + indent(8) + phase1 + ": " + timeRegex + "\n" + refDetailRegex; output.shouldMatch(/* Total Reference processing time */ totalRegex + /* SoftReference processing */ softRefRegex + balanceRegex + softRefDetailRegex + /* WeakReference processing */ weakRefRegex + balanceRegex + refDetailRegex + /* FinalReference processing */ finalRefRegex + balanceRegex + refDetailRegex + /* PhantomReference processing */ ! phantomRefRegex + balanceRegex + refDetailRegex ); } // After getting time value, update 'output' for next use. public static BigDecimal getTimeValue(String name, int indentCount) {
< prev index next >