Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8301712: [linux] Crash on exit from WebKit 615.1
Backport-of: 13d8df3
  • Loading branch information
kevinrushforth committed Feb 11, 2023
1 parent b30861f commit c05063c
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 c05063c

@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.