#include "runtime.h"
static int32 debug = 0;
-static int32 xxx = 0;
static Lock chanlock;
typedef struct Hchan Hchan;
G *gp;
byte *as;
- if(xxx) {
+ if(debug) {
prints("selectgo: sel=");
sys·printpointer(sel);
prints("\n");
goto loop;
}
- if(xxx) {
+ if(debug) {
prints("wait-return: sel=");
sys·printpointer(sel);
prints(" c=");
gotr:
// recv path to wakeup the sender (sg)
- if(xxx) {
+ if(debug) {
prints("gotr: sel=");
sys·printpointer(sel);
prints(" c=");
gots:
// send path to wakeup the receiver (sg)
- if(xxx) {
+ if(debug) {
prints("gots: sel=");
sys·printpointer(sel);
prints(" c=");