summaryrefslogtreecommitdiff
path: root/test/StringLiterals/StringLiterals.java
AgeCommit message (Collapse)Author
2019-03-21Fix possible overrun bug for resolving startup stringsMathieu Chartier
Moved the ResolveConstStrings after verification and added logic to only resolve strings for classes that verify. This fixes a bug where invalid Dex bytecode could cause dex2oat to crash. Bug: 128915540 Test: test-art-host Change-Id: Id2e5e4b10e5afbb8955e805d199754bc255a2f42
2018-10-19Resolve const-string of clinitMathieu Chartier
Resolve the const strings of the clinit for classes that are loaded in the profile. For Maps, the number of strings is ~4400. This would take ~100k RAM if each string is around 20 characters. Note that these strings are mostly already loaded during startup, so there might not be a net RAM usage increase. Test: test-art-host Bug: 117621117 Change-Id: I632a91633c1b3757523ef6e655f192305554499b
2018-10-16Add logic to eagerly resolve const-string for startup methodsMathieu Chartier
Added dex2oat option --resolve-startup-const-strings=<true|false> If true, this option causes the compiler driver to resolve all const-strings that are referenced from methods marked as "startup" in the profile. Bug: 116059983 Test: test-art-host Change-Id: I61cf9e945c125671fc4ab4b50458a911318a837f