Skip to content

Commit

Permalink
Merge pull request #4420 from babsingh/introspect_hang_patch_012release
Browse files Browse the repository at this point in the history
Fix the hang during abort and re-enable the gpTest suite on OSX
  • Loading branch information
DanHeidinga committed Jan 24, 2019
2 parents 90ef8b0 + 7837cb7 commit 7c773ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions runtime/rasdump/javadump.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2003, 2018 IBM Corp. and others
* Copyright (c) 2003, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -1837,6 +1837,7 @@ JavaCoreDumpWriter::writeThreadSection(void)
_OutputStream.writeInteger(_VirtualMachine->daemonThreadCount, "%i");
_OutputStream.writeCharacters("\n");

#if !defined(OSX)
/* if thread preempt is enabled, and we have the lock, then collect the native stacks */
if ((_Agent->requestMask & J9RAS_DUMP_DO_PREEMPT_THREADS) && _PreemptLocked
#if defined(WIN32)
Expand All @@ -1845,7 +1846,7 @@ JavaCoreDumpWriter::writeThreadSection(void)
*/
&& !(_Context->eventFlags & J9RAS_DUMP_ON_THREAD_START)
&& !(_Context->eventFlags & J9RAS_DUMP_ON_THREAD_END)
#endif
#endif /* defined(WIN32) */
) {
struct walkClosure closure;
UDATA sink = 0;
Expand All @@ -1856,6 +1857,7 @@ JavaCoreDumpWriter::writeThreadSection(void)
J9PORT_SIG_FLAG_SIGALLSYNC|J9PORT_SIG_FLAG_MAY_RETURN,
&sink);
}
#endif /* !defined(OSX) */

if( !_ThreadsWalkStarted ) {
struct walkClosure closure;
Expand Down
5 changes: 2 additions & 3 deletions test/functional/cmdLineTests/gptest/playlist.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright (c) 2016, 2018 IBM Corp. and others
Copyright (c) 2016, 2019 IBM Corp. and others
This program and the accompanying materials are made available under
the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -41,8 +41,7 @@
-Xint -jar $(CMDLINETESTER_JAR) \
-config $(Q)$(TEST_RESROOT)$(D)gptests.xml$(Q) -verbose -explainExcludes -xids all,$(PLATFORM),$(VARIATION) -plats all,$(PLATFORM),$(VARIATION) -xlist $(Q)$(TEST_RESROOT)$(D)cmdlineopttest_exclude.xml$(Q) -nonZeroExitWhenError; \
${TEST_STATUS} </command>
<!-- temporarily disable this test on osx; https://github.com/eclipse/openj9/issues/3686 -->
<platformRequirements>^os.win,^os.osx</platformRequirements>
<platformRequirements>^os.win</platformRequirements>
<levels>
<level>sanity</level>
</levels>
Expand Down

0 comments on commit 7c773ca

Please sign in to comment.