Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
b7c6d95e
Commit
b7c6d95e
authored
Jul 28, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bjit: don't retry jiting very large blocks
parent
49eccf88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
src/codegen/baseline_jit.cpp
src/codegen/baseline_jit.cpp
+15
-1
No files found.
src/codegen/baseline_jit.cpp
View file @
b7c6d95e
...
...
@@ -560,7 +560,21 @@ int JitFragmentWriter::finishCompilation() {
}
if
(
assembler
->
hasFailed
())
{
code_block
.
fragmentAbort
(
true
/* not_enough_space */
);
int
bytes_written
=
assembler
->
bytesWritten
();
// don't retry JITing very large blocks
const
auto
large_block_threshold
=
JitCodeBlock
::
code_size
-
4096
;
if
(
bytes_written
>
large_block_threshold
)
{
static
StatCounter
num_jit_large_blocks
(
"num_baselinejit_skipped_large_blocks"
);
num_jit_large_blocks
.
log
();
blocks_aborted
.
insert
(
block
);
code_block
.
fragmentAbort
(
false
);
}
else
{
// we ran out of space - we allow a retry and set shouldCreateNewBlock to true in order to allocate a new
// block for the next attempt.
code_block
.
fragmentAbort
(
true
/* not_enough_space */
);
}
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment