Skip to content

Commit 686f885

Browse files
Remove debug breaks.
-They hit each time retain/release is called on root device, which is actually not an error. Change-Id: I374752f56ae6750c85ac4750eb997dc66a33d0af Signed-off-by: Michal Mrozek <[email protected]>
1 parent 42858ac commit 686f885

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

runtime/device/device.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,13 @@ unsigned int ClDevice::getEnabledClVersion() const { return device.getEnabledClV
6060
unsigned int ClDevice::getSupportedClVersion() const { return device.getSupportedClVersion(); }
6161

6262
void ClDevice::retainApi() {
63-
if (!device.isReleasable()) {
64-
DEBUG_BREAK_IF(true);
65-
} else {
63+
if (device.isReleasable()) {
6664
platform()->getClDevice(device.getRootDeviceIndex())->incRefInternal();
6765
this->incRefApi();
6866
}
6967
};
7068
unique_ptr_if_unused<ClDevice> ClDevice::releaseApi() {
7169
if (!device.isReleasable()) {
72-
DEBUG_BREAK_IF(true);
7370
return unique_ptr_if_unused<ClDevice>(this, false);
7471
}
7572
platform()->getClDevice(device.getRootDeviceIndex())->decRefInternal();

0 commit comments

Comments
 (0)