Skip to content

script: Refactors GPUPipelineLayout to disallow direct Drop.#42937

Merged
sagudev merged 1 commit into
servo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUPipelineLayout
Mar 2, 2026
Merged

script: Refactors GPUPipelineLayout to disallow direct Drop.#42937
sagudev merged 1 commit into
servo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUPipelineLayout

Conversation

@willypuzzle
Copy link
Copy Markdown
Contributor

Moves the Drop implementation for GPUPipelineLayout to a dedicated private helper struct, DroppableGPUPipelineLayout. This ensures that DOM types do not directly implement Drop, aligning with best practices for resource management in the DOM. The associated Bindings.conf entry is removed as direct Drop is no longer needed for this type.

Testing: WebGpu just coverages cases with proper tests
Fixes: Partially #26488

@willypuzzle willypuzzle requested a review from sagudev as a code owner March 1, 2026 22:57
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 1, 2026
Moves the `Drop` implementation for `GPUPipelineLayout` to a dedicated private helper struct, `DroppableGPUPipelineLayout`. This ensures that DOM types do not directly implement `Drop`, aligning with best practices for resource management in the DOM. The associated `Bindings.conf` entry is removed as direct `Drop` is no longer needed for this type.

Signed-off-by: Domenico Rizzo <[email protected]>
@willypuzzle willypuzzle force-pushed the 26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUPipelineLayout branch from 97ecb64 to 3996f2e Compare March 2, 2026 11:56
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 2, 2026
@sagudev sagudev added this pull request to the merge queue Mar 2, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 2, 2026
Merged via the queue into servo:main with commit 68284e4 Mar 2, 2026
30 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 2, 2026
@willypuzzle willypuzzle deleted the 26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUPipelineLayout branch March 2, 2026 16:28
simonwuelker pushed a commit to simonwuelker/servo that referenced this pull request Mar 3, 2026
…2937)

Moves the `Drop` implementation for `GPUPipelineLayout` to a dedicated
private helper struct, `DroppableGPUPipelineLayout`. This ensures that
DOM types do not directly implement `Drop`, aligning with best practices
for resource management in the DOM. The associated `Bindings.conf` entry
is removed as direct `Drop` is no longer needed for this type.

Testing: WebGpu just coverages cases with  proper tests
Fixes: Partially servo#26488

Signed-off-by: Domenico Rizzo <[email protected]>
offline-ant pushed a commit to offline-ant/havi that referenced this pull request Jun 4, 2026
…2937)

Moves the `Drop` implementation for `GPUPipelineLayout` to a dedicated
private helper struct, `DroppableGPUPipelineLayout`. This ensures that
DOM types do not directly implement `Drop`, aligning with best practices
for resource management in the DOM. The associated `Bindings.conf` entry
is removed as direct `Drop` is no longer needed for this type.

Testing: WebGpu just coverages cases with  proper tests
Fixes: Partially servo#26488

Signed-off-by: Domenico Rizzo <[email protected]>
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.

3 participants