Skip to content
Snippets Groups Projects
  1. Jun 13, 2017
    • Yang Ni's avatar
      Do not CloseGuard KernelID or FieldID · 3a84a23f
      Yang Ni authored
      Bug: 28053584
      
      Stop CloseGuarding for two reasons:
      
      1) KernelID and FieldID objects are constructed in auto-generated
      (RenderScript reflected) Java code. It would be impossible for a user to
      explicitly call destroy() on them. Guarding them would leave a lot of
      noisy warnings in logcat.
      
      2) These KernelID and FieldID objects are not big compared to other
      RenderScript objects, e.g. Allocations. They occupy almost no native
      resources except for a native pointer. Leaving their destruction to Java
      GC would be completely acceptable, since any delay in reclaiming them is
      unlikely to cause memory pressure.
      
      Test: CTS on x86_64 emulator
      Change-Id: I587b5561a0b2bdbf0b2e95bf2995c20d5f5faf9d
      3a84a23f
  2. Apr 24, 2017
  3. Apr 23, 2017
  4. Apr 22, 2017
  5. Apr 21, 2017
  6. Apr 20, 2017
Loading