Skip to content

Commit

Permalink
Explicitly set v8 thread priority (#4693)
Browse files Browse the repository at this point in the history
b/378556308
b/386841458
  • Loading branch information
andrewsavage1 authored Jan 14, 2025
1 parent c4fc5eb commit 5925dc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v8/src/base/platform/platform-starboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "starboard/common/time.h"
#include "starboard/configuration.h"
#include "starboard/configuration_constants.h"
#include "starboard/thread.h"
#include "starboard/time_zone.h"

#include "sys/mman.h"
Expand Down Expand Up @@ -387,6 +388,9 @@ static void* ThreadEntry(void* arg) {
// we don't know which thread will run first (the original thread or the new
// one).
{ LockGuard<Mutex> lock_guard(&thread->data()->thread_creation_mutex_); }
#if SB_API_VERSION >= 16
SbThreadSetPriority(kSbThreadPriorityNormal);
#endif
SetThreadName(thread->name());
// DCHECK_NE(thread->data()->thread_, kNoThread);
thread->NotifyStartedAndRun();
Expand Down

0 comments on commit 5925dc0

Please sign in to comment.