Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 1773503003: Subzero: Control memory growth from local label fixups. (Closed)

Created:
4 years, 9 months ago by Jim Stichnoth
Modified:
4 years, 9 months ago
Reviewers:
Eric Holk, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Control memory growth from local label fixups. The ConstantRelocatable objects for pushing local labels are allocated from the Assembler arena, and are no longer pooled, which restricts the memory growth from sandboxing x86-64 calls. Because the Assembler arena is destroyed while the fixups are still active, these fixups have to be fixed up by holding a pointer to the symbol rather than the constant. On the 10MB test pexe, the overall growth by the end is ~20MB, instead of ~130MB as before. This also partially fixes an existing bug with arm32/nonsfi/iasm, exposed by running cross tests and forcing iasm output. BUG= none R=jpp@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=3e324002a1df4861c389f7289ead7e9ff5adcd42

Patch Set 1 #

Patch Set 2 : Add comments #

Patch Set 3 : Attempt to fix -nonsfi -filetype=iasm -target=arm32 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -51 lines) Patch
M pydir/crosstest_generator.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/IceAssemblerARM32.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/IceAssemblerARM32.cpp View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M src/IceELFObjectWriter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceELFSection.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/IceELFSection.cpp View 1 1 chunk +14 lines, -1 line 0 comments Download
M src/IceFixups.h View 1 3 chunks +27 lines, -13 lines 0 comments Download
M src/IceFixups.cpp View 2 chunks +23 lines, -19 lines 0 comments Download
M src/IceOperand.h View 2 chunks +7 lines, -5 lines 0 comments Download
M src/IceTargetLoweringX8664.cpp View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Jim Stichnoth
4 years, 9 months ago (2016-03-08 07:57:39 UTC) #4
Jim Stichnoth
A couple extra notes to give more context on the direction I still want to ...
4 years, 9 months ago (2016-03-08 14:49:45 UTC) #5
Jim Stichnoth
PTAL
4 years, 9 months ago (2016-03-09 00:09:57 UTC) #7
John
lgtm
4 years, 9 months ago (2016-03-09 00:12:45 UTC) #8
Jim Stichnoth
4 years, 9 months ago (2016-03-09 00:18:45 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
3e324002a1df4861c389f7289ead7e9ff5adcd42 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698