mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8196681: Java Access Bridge logging and debug flags dynamically controlled
Reviewed-by: serb, sveerabhadra
This commit is contained in:
parent
c83b55a9e2
commit
113b5184cf
10 changed files with 1409 additions and 1324 deletions
|
@ -84,17 +84,17 @@ AccessBridgeMessageQueue::getEventsWaiting() {
|
|||
*/
|
||||
QueueReturns
|
||||
AccessBridgeMessageQueue::add(AccessBridgeQueueElement *element) {
|
||||
PrintDebugString(" in AccessBridgeMessageQueue::add()");
|
||||
PrintDebugString(" queue size = %d", size);
|
||||
PrintDebugString("[INFO]: in AccessBridgeMessageQueue::add()");
|
||||
PrintDebugString("[INFO]: queue size = %d", size);
|
||||
|
||||
QueueReturns returnVal = cElementPushedOK;
|
||||
if (queueLocked) {
|
||||
PrintDebugString(" queue was locked; returning cQueueInUse!");
|
||||
PrintDebugString("[WARN]: queue was locked; returning cQueueInUse!");
|
||||
return cQueueInUse;
|
||||
}
|
||||
queueLocked = TRUE;
|
||||
{
|
||||
PrintDebugString(" adding element to queue!");
|
||||
PrintDebugString("[INFO]: adding element to queue!");
|
||||
if (end == (AccessBridgeQueueElement *) 0) {
|
||||
if (start == (AccessBridgeQueueElement *) 0 && size == 0) {
|
||||
start = element;
|
||||
|
@ -114,7 +114,7 @@ AccessBridgeMessageQueue::add(AccessBridgeQueueElement *element) {
|
|||
}
|
||||
}
|
||||
queueLocked = FALSE;
|
||||
PrintDebugString(" returning from AccessBridgeMessageQueue::add()");
|
||||
PrintDebugString("[INFO]: returning from AccessBridgeMessageQueue::add()");
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
|
@ -125,17 +125,17 @@ AccessBridgeMessageQueue::add(AccessBridgeQueueElement *element) {
|
|||
*/
|
||||
QueueReturns
|
||||
AccessBridgeMessageQueue::remove(AccessBridgeQueueElement **element) {
|
||||
PrintDebugString(" in AccessBridgeMessageQueue::remove()");
|
||||
PrintDebugString(" queue size = %d", size);
|
||||
PrintDebugString("[INFO]: in AccessBridgeMessageQueue::remove()");
|
||||
PrintDebugString("[INFO]: queue size = %d", size);
|
||||
|
||||
QueueReturns returnVal = cMoreMessages;
|
||||
if (queueLocked) {
|
||||
PrintDebugString(" queue was locked; returning cQueueInUse!");
|
||||
PrintDebugString("[WARN]: queue was locked; returning cQueueInUse!");
|
||||
return cQueueInUse;
|
||||
}
|
||||
queueLocked = TRUE;
|
||||
{
|
||||
PrintDebugString(" removing element from queue!");
|
||||
PrintDebugString("[INFO]: removing element from queue!");
|
||||
if (size > 0) {
|
||||
if (start != (AccessBridgeQueueElement *) 0) {
|
||||
*element = start;
|
||||
|
@ -157,7 +157,7 @@ AccessBridgeMessageQueue::remove(AccessBridgeQueueElement **element) {
|
|||
}
|
||||
}
|
||||
queueLocked = FALSE;
|
||||
PrintDebugString(" returning from AccessBridgeMessageQueue::remove()");
|
||||
PrintDebugString("[INFO]: returning from AccessBridgeMessageQueue::remove()");
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue