Andrew Johnson
536c6e91ff
Export private dbLock*Ref() functions for tests
2015-08-19 11:26:47 -05:00
Michael Davidsaver
180f40c1f7
dbLock: fix unlock w/o lock during iocInit
2015-08-18 11:09:35 -04:00
Michael Davidsaver
d5832354e8
iocInit: Don't free LSET until scan tasks have stopped
2015-08-18 11:09:35 -04:00
Michael Davidsaver
9198428619
dbLock: minor
...
must match following condition
2015-07-09 17:16:39 -04:00
Michael Davidsaver
8f3fcc2787
dbLock: fix initialization of self links
...
initPVLinks() doesn't correctly handle case where a record links
to itself. This results it being added twice to lockRecordList,
which corrupts the list count, and the lockset ref. counter.
The error appears in dbLockCleanupRecords() when not all
locksets are free'd.
2015-07-09 17:07:49 -04:00
Michael Davidsaver
ff4c88ed05
dbLock: comments
2015-03-24 14:18:11 -04:00
Michael Davidsaver
7a5d4cf6cc
dbLock: minor
2015-03-24 14:18:11 -04:00
Michael Davidsaver
765fb7c63e
dbLock: remove some unnecessary code
...
no need to hold spinlock for lockRecordList
the lockRecordList is protected by the lockSet::lock
2015-03-24 14:18:11 -04:00
Michael Davidsaver
fa4678798c
iocInit: remove no-op
...
The work which was done here is moved to dbCloseLinks()
2015-03-24 14:18:11 -04:00
Michael Davidsaver
127bdfd9aa
dbLock: comments
2015-03-24 14:18:11 -04:00
Michael Davidsaver
8fea2f5ae6
dbLock: default build options
...
Enable extra debugging.
Disable lockSet free list.
Enable recomputeCnt optimization
2015-03-24 14:18:11 -04:00
Michael Davidsaver
07bb2fbef7
dbLock: no c++ comments in c code
2015-03-24 14:18:11 -04:00
Michael Davidsaver
58a8a07cc4
dbAccess.c: dbLocker needs at most two refs
2015-03-24 14:18:11 -04:00
Michael Davidsaver
a78abd0070
dbLock: describe build options
2015-03-24 14:18:11 -04:00
Michael Davidsaver
c26b02c20d
dbCaTest: adjust locking in dbcar()
2015-03-24 14:18:11 -04:00
Michael Davidsaver
ee297dc558
dbLock: use new backref tracking
2015-03-24 14:18:11 -04:00
Michael Davidsaver
8ce0ba1e54
dbLink: backward link tracking
2015-03-24 14:18:11 -04:00
Michael Davidsaver
b8a7da18d2
iocInit: links now initialized in dbLockInitRecords()
2015-03-24 14:18:11 -04:00
Michael Davidsaver
8af3ffb653
dbAccess: multi-locking in dbPutFieldLink
...
Use new locking API in dbPutFieldLink()
Adjust dbAddLink() and dbRemoveLink()
to pass a dbLocker* through to lockSet merge/split
2015-03-24 14:18:11 -04:00
Michael Davidsaver
ffd188bea3
dbLockTest and dbStressLock
2015-03-24 14:14:46 -04:00
Michael Davidsaver
af89b716f4
dbLock: multi-locking
...
new API to lock 2 or more lockSets simultaneously
removes global locks for dbScanLock() only
one global lock for debugging/freelist
Introduce dbLockPvt.h for internal API
2015-03-24 14:14:46 -04:00
Michael Davidsaver
adcde46e9e
populate RDES early
2015-03-24 14:12:00 -04:00
Michael Davidsaver
c9d889ef3e
asTest: quiet
2015-03-19 11:26:48 -04:00
Andrew Johnson
8344b4ed79
Merged changes from 3.15 up to revno 12658
2015-03-18 17:01:34 -05:00
Andrew Johnson
eaef9aabdf
Fix export type of .LINK$ fields, add tests
2015-03-18 16:48:07 -05:00
Andrew Johnson
1fd91f52e2
dbStatic: Add field type lookup routines
2015-03-18 16:34:07 -05:00
Michael Davidsaver
3a647fb38b
iocInit: prepareLinks after autosave pass0
...
Allow autosave to restore link fields again...
2015-03-17 19:13:33 -04:00
Michael Davidsaver
8bf765365f
std/rec/test: add asTest to RTEMS test harness
2015-03-17 15:26:08 -04:00
Michael Davidsaver
e7037cc519
dbStatic: fix CONSTANT links
...
constantStr==NULL and constantStr=="" have different
meanings for recGblInitConstantLink() which is used with DOL.
constantStr should remain NULL unless explicitly set
by either initial("") or field(..., "")
2015-03-17 11:34:36 -04:00
Michael Davidsaver
0d41dd0113
std/rec/test: add asTest
2015-03-16 18:47:58 -04:00
Michael Davidsaver
4bd4b93649
dbCa: update comments on locking
2015-03-13 15:15:03 -04:00
Michael Davidsaver
c120027768
dbCa: fix race in scanComplete
...
Use a reference counter in caLink to ensure it isn't
free'd while callbacks remain in the scanOnce queue.
2015-03-13 15:15:03 -04:00
Andrew Johnson
e1b2a0c5a3
Merged changes from 3.14 branch up to revno 12573
2015-03-13 11:50:26 -05:00
Andrew Johnson
5ffda58351
ca: Fix missing guard argument
2015-03-13 11:08:05 -05:00
Andrew Johnson
f6373093a5
Fix Windows linkage warning in alarmString.h
2015-03-13 10:56:03 -05:00
Andrew Johnson
8215244a28
Fix Windows time discontinuity report
2015-03-13 10:06:23 -05:00
Andrew Johnson
cc3a01d460
Merged changes from 3.15 branch up to revno 12655
2015-03-11 17:20:40 -05:00
Andrew Johnson
99f1dbb75e
Merged changes from 3.14 branch up to revno 12570
2015-03-11 16:26:15 -05:00
Andrew Johnson
9577615bba
Merged changes from 3.14 branch up to revno 12564
2015-03-11 16:08:29 -05:00
Andrew Johnson
de298da94c
Fix Jenkins instability on Windows
2015-03-11 10:53:37 -05:00
Andrew Johnson
753bfcc579
Check sender threads are starting
2015-03-10 18:14:11 -05:00
Andrew Johnson
4568cd3616
Chasing Jenkins instability on Windows
2015-03-10 14:17:28 -05:00
Andrew Johnson
1cacb8ef72
Make TOP an absolute path when running test programs
...
If the test starts an IOC, the registerRecordDeviceDriver
routine will compare the absolute path of TOP at build time
against the environment variable value (normally relative)
and print a warning if they differ.
This change cleans up the .tap output from such tests.
2015-03-10 13:04:15 -05:00
Michael Davidsaver
fb7273046c
epicsAtomic: also prevent vxWorks from using posix/epicsAtomicOSD.cpp
2015-03-10 10:39:37 -04:00
Michael Davidsaver
5bbd954ec8
epicsAtomic: fix noop OSDs
...
Ensure that all are epicsAtomicOSD.cpp and use
no-op to prevent RTEMS from using the posix
implementation.
2015-03-09 21:27:49 -04:00
Michael Davidsaver
6bf3f5554f
epicsAtomic: fix function def. order
...
epicsAtomicMemoryBarrierFallback used before definition
2015-03-09 19:48:30 -04:00
Andrew Johnson
e0f97a9215
Set testPlan in dbCaStatsTest.c
2015-03-09 18:07:13 -05:00
Andrew Johnson
a3793c368a
Merged changes from 3.14 branch up to revno 12561
2015-03-09 17:59:08 -05:00
Andrew Johnson
dad5b1cc94
Merged Michael's fixatomiclinkage branch
2015-03-09 17:43:44 -05:00
Andrew Johnson
e75ec5f85b
Set snapshot to -rc1-DEV
2015-03-09 14:33:17 -05:00