Searched hist:3222 (Results 1 - 4 of 4) sorted by relevance

/gem5/src/python/pybind11/
H A Devent.cc12041:52b3b120dbc0 Wed May 10 05:57:00 EDT 2017 Andreas Sandberg <andreas.sandberg@arm.com> python: Fix PyEvent reference counting bug

The current implementation of reference counting for PyEvents only
partially works. The native object is currently kept alive while it is
in the event queue. However, if the Python object goes out of scope,
the Python side of this object is garbage collected which leaves a
"dangling" native object. This results in confusing error messages
where PyBind is unable to find the Python implementation of an event
when it is triggered.

Implement reference counting using the generalized reference counting
API instead.

Change-Id: I4e8e04abc4f61dff238d718065f5371e73b38ab3
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3222
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
/gem5/src/python/m5/
H A Devent.py12041:52b3b120dbc0 Wed May 10 05:57:00 EDT 2017 Andreas Sandberg <andreas.sandberg@arm.com> python: Fix PyEvent reference counting bug

The current implementation of reference counting for PyEvents only
partially works. The native object is currently kept alive while it is
in the event queue. However, if the Python object goes out of scope,
the Python side of this object is garbage collected which leaves a
"dangling" native object. This results in confusing error messages
where PyBind is unable to find the Python implementation of an event
when it is triggered.

Implement reference counting using the generalized reference counting
API instead.

Change-Id: I4e8e04abc4f61dff238d718065f5371e73b38ab3
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3222
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
/gem5/src/cpu/simple/
H A Dtiming.hh3222:19bd4dd3be83 Sun Oct 08 00:55:00 EDT 2006 Kevin Lim <ktlim@umich.edu> Record numCycles properly.

src/cpu/simple/timing.cc:
Record numCycles stat properly.
src/cpu/simple/timing.hh:
Extra variable to help record numCycles stat.
H A Dtiming.cc3222:19bd4dd3be83 Sun Oct 08 00:55:00 EDT 2006 Kevin Lim <ktlim@umich.edu> Record numCycles properly.

src/cpu/simple/timing.cc:
Record numCycles stat properly.
src/cpu/simple/timing.hh:
Extra variable to help record numCycles stat.

Completed in 73 milliseconds