Skip to content

layersvt: Remove DebugMarker object names on destruction - #48

Open
olehkuznetsov wants to merge 1 commit into
android-graphics:pr-debugmarker-remove-on-nullfrom
olehkuznetsov:pr-debugmarker-remove-on-destroy
Open

olehkuznetsov wants to merge 1 commit into
android-graphics:pr-debugmarker-remove-on-nullfrom
olehkuznetsov:pr-debugmarker-remove-on-destroy

Conversation

@olehkuznetsov

Copy link
Copy Markdown

DebugMarker kept object names until the device was destroyed. Drivers
can reuse handle values for new objects, so a new resource inherited
the stale name and trace consumers misattributed it.

Erase an object's name when its destroy or free command is called,
before dispatching downstream, so a handle reused by another thread
cannot pick up the old name. Extension destroy commands are
intercepted only when the device exposes them.

Bug:
Test: new tests - DebugMarkerTests#DestroyedObjectNamesRemovedTest, DebugMarkerTests#DestroyedObjectNamesOfOtherTypesRemovedTest, DebugMarkerTests#ExtensionDestroyCommandRequiresDownstreamTest
Change-Id: Iad9147fca27b76c329450f0b9f01802a6a6a6964

@olehkuznetsov
olehkuznetsov changed the base branch from main to pr-debugmarker-remove-on-null October 15, 2026 16:06
DebugMarker kept object names until the device was destroyed. Drivers
can reuse handle values for new objects, so a new resource inherited
the stale name and trace consumers misattributed it.

Erase an object's name when its destroy or free command is called,
before dispatching downstream, so a handle reused by another thread
cannot pick up the old name. Extension destroy commands are
intercepted only when the device exposes them.

Bug:
Test: new tests - DebugMarkerTests#DestroyedObjectNamesRemovedTest, DebugMarkerTests#DestroyedObjectNamesOfOtherTypesRemovedTest, DebugMarkerTests#ExtensionDestroyCommandRequiresDownstreamTest
Change-Id: Iad9147fca27b76c329450f0b9f01802a6a6a6964
@olehkuznetsov
olehkuznetsov force-pushed the pr-debugmarker-remove-on-null branch from 74e9e95 to 06f55a3 Compare October 19, 2026 09:18
@olehkuznetsov
olehkuznetsov force-pushed the pr-debugmarker-remove-on-destroy branch from 277b75d to e12a3c3 Compare October 19, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant