-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Make profiling check-pointing longer for mega functions
https://bugs.webkit.org/show_bug.cgi?id=260010 rdar://113668308 Reviewed by Justin Michaud. While we designed our profiling collection with "they are cheap" assumption, this is not true for some mega-sized functions. There are some mega-sized functions, which can be generated by toolings etc., has massive amount of ValueProfiles, and causing very long stop for profile update. In this patch, we attempt to avoid this pathological case. When function size exceeds the threshold, we categorize it as mega-sized, and we relax maximumExecutionCountsBetweenCheckpoints more larger. Because we do profiling update on each checkpoint, making it longer means less frequent profiling update. * Source/JavaScriptCore/bytecode/CodeBlock.cpp: (JSC::CodeBlock::optimizationThresholdScalingFactor const): (JSC::CodeBlock::optimizationThresholdScalingFactor): Deleted. * Source/JavaScriptCore/bytecode/CodeBlock.h: * Source/JavaScriptCore/bytecode/ExecutionCounter.cpp: (JSC::maximumExecutionCountsBetweenCheckpoints): (JSC::ExecutionCounter<countingVariant>::hasCrossedThreshold const): (JSC::ExecutionCounter<countingVariant>::setThreshold): * Source/JavaScriptCore/bytecode/ExecutionCounter.h: (JSC::ExecutionCounter::clippedThreshold): (JSC::ExecutionCounter::maximumExecutionCountsBetweenCheckpoints): Deleted. * Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp: (JSC::DFG::handleExitCounts): * Source/JavaScriptCore/runtime/OptionsList.h: Canonical link: https://commits.webkit.org/266819@main
- Loading branch information
1 parent
11dd1ef
commit c323bd2
Showing
6 changed files
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters