RVM

Don't replicate OSR_EncodedOSRMaps

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.9.3
  • Labels:
    None
  • Number of attachments :
    1

Description

This patch adds a map to avoid replicating OSR maps and passes pre-commit tests (I'm not claiming its sane). The patch reduces 19523 objects of size 546644bytes to 1 object of size 28bytes in the boot image (hence my worrying about its sanity). With the other objects hanging off OSR_EncodedOSRMap this represents a significant saving, if we can conclude the patch is sane.

Activity

Hide
David Grove added a comment -

My WAG would be that this is telling us that we should probably have a special case for OSR_EncodedOSRMap which says "no information". I have a vague recollection that we disable OSR-guarded inlining for bootimage code (because some parts of the bootimage are sensitive and we can't do an OSR while executing them), so all of these maps in the bootimage are probably empty.

Show
David Grove added a comment - My WAG would be that this is telling us that we should probably have a special case for OSR_EncodedOSRMap which says "no information". I have a vague recollection that we disable OSR-guarded inlining for bootimage code (because some parts of the bootimage are sensitive and we can't do an OSR while executing them), so all of these maps in the bootimage are probably empty.
Hide
Ian Rogers added a comment -

I agree, how can we reduce the boot image space?

Show
Ian Rogers added a comment - I agree, how can we reduce the boot image space?
Hide
Ian Rogers added a comment -

Committed variant in r14008 as the empty map is by far the most common, this avoids the use of a hash map.

Show
Ian Rogers added a comment - Committed variant in r14008 as the empty map is by far the most common, this avoids the use of a hash map.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: