Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8301712: [linux] Crash on exit from WebKit 615.1
Backport-of: 13d8df31e7bc4336d01ec859e127756928db30d4
  • Loading branch information
kevinrushforth committed Mar 13, 2023
1 parent 27af394 commit e43e56b
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -26,7 +26,9 @@

#include "config.h"
#include "ThreadTimers.h"

#if PLATFORM(JAVA)
#include <wtf/java/JavaEnv.h>
#endif
#include "MainThreadSharedTimer.h"
#include "SharedTimer.h"
#include "ThreadGlobalData.h"
Expand Down Expand Up @@ -63,7 +65,11 @@ void ThreadTimers::setSharedTimer(SharedTimer* sharedTimer)

m_sharedTimer = sharedTimer;

#if PLATFORM(JAVA)
if (sharedTimer && !g_ShuttingDown) {
#else
if (sharedTimer) {
#endif
m_sharedTimer->setFiredFunction([] { threadGlobalData().threadTimers().sharedTimerFiredInternal(); });
updateSharedTimer();
}
Expand Down

1 comment on commit e43e56b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.