Skip to content

Associated objects bugs #330

@rfm

Description

@rfm

I think there are two bugs in the associated objects implementation as follows:

  1. it looks like retained/copied values are not released when the object they are associated with is deallocated, causing leaks.
  2. it looks like the atomic policy is not fully implemented ... when getting an associated value it is not retained/autoreleased, so another thread can destroy it before the calling thread gets to retain it.

These issues are demonstrated in the gnustep-base tests (marked as hopeful) in Tests/base/Functions/runtime.m
These tests pass on OSX

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions