Skip to content

Commit

Permalink
Issue #207.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgm3746 committed Jul 5, 2024
1 parent 3713264 commit 576e57e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,11 @@ public class UnifiedPreprocessAction implements PreprocessAction {
"^" + UnifiedRegEx.DECORATOR + " O: (ClassLoaderData|Concurrent (Classes Unlink|References Process)|"
+ "Trigger cleanups)$",
// ***** Other *****
"^" + UnifiedRegEx.DECORATOR + " ... found polling page loop exception at pc .+$",
//
"^" + UnifiedRegEx.DECORATOR
+ " Safepoint synchronization initiated using futex wait barrier. \\(\\d{1,} threads\\)$",
//
UnifiedBlankLineEvent.REGEX
//
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,18 @@ void testFlushTaskCaches() {
assertNull(event.getLogEntry(), "Log line not parsed correctly.");
}

@Test
void testFoundPollingPageLoopExecutionAtPc() {
String logLine = "[27.197s] ... found polling page loop exception at pc = 0x00007f95fc518271, "
+ "stub =0x00007f95fc455c00";
Set<String> context = new HashSet<String>();
assertTrue(UnifiedPreprocessAction.match(logLine),
"Log line not recognized as " + PreprocessActionType.UNIFIED.toString() + ".");
List<String> entangledLogLines = new ArrayList<String>();
UnifiedPreprocessAction event = new UnifiedPreprocessAction(null, logLine, null, entangledLogLines, context);
assertNull(event.getLogEntry(), "Log line not parsed correctly.");
}

@Test
void testFreeCollectionSet() {
String logLine = "[0.838s][debug][gc,phases ] GC(0) Free Collection Set (ms): Min: 0.0, "
Expand Down Expand Up @@ -3824,6 +3836,17 @@ void testSafepointParallel() throws IOException {
JdkUtil.LogEventType.UNIFIED_SAFEPOINT.toString() + " collector not identified.");
}

@Test
void testSafepointSynchronizationInitiatedUsingFutexWaitBarrier() {
String logLine = "[3.459s] Safepoint synchronization initiated using futex wait barrier. (14 threads)";
Set<String> context = new HashSet<String>();
assertTrue(UnifiedPreprocessAction.match(logLine),
"Log line not recognized as " + PreprocessActionType.UNIFIED.toString() + ".");
List<String> entangledLogLines = new ArrayList<String>();
UnifiedPreprocessAction event = new UnifiedPreprocessAction(null, logLine, null, entangledLogLines, context);
assertNull(event.getLogEntry(), "Log line not parsed correctly.");
}

@Test
void testSafepointTime() {
String logLine = "[2021-09-14T11:40:53.379-0500][144.036s][info][safepoint ] Total time for which "
Expand Down

0 comments on commit 576e57e

Please sign in to comment.