Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-03-20
16:54 • Closed ticket [1868171fff]: AOLserver needs Tcl_GetMemoryInfo, but it's now ... artifact: 77b534ef47 user: dkf
06:29 • Ticket [1868171fff]: 4 changes artifact: f62a69a4fa user: dkf
03:06 • Ticket [1868171fff]: 4 changes artifact: 10b5fef8ad user: hobbs
02:58 • Ticket [1868171fff]: 4 changes artifact: b514167811 user: dgp
02:48 • Open ticket [1868171fff]. artifact: b733c48b08 user: hobbs
02:48 • Ticket [1868171fff]: 4 changes artifact: e746ab2746 user: hobbs
02:35 • Ticket [1868171fff]: 4 changes artifact: 3e8c2e2a64 user: dgp
2008-03-19
23:03 • Closed ticket [1868171fff]. artifact: 28375c51d9 user: dkf
2008-03-13
21:22 • Ticket [1868171fff]: 5 changes artifact: 5370e5d8f9 user: dgp
2008-02-27
01:41 • Ticket [1868171fff]: 4 changes artifact: 2158e87ef3 user: gneumann
2008-02-26
22:15 • Ticket [1868171fff]: 5 changes artifact: 988ac0a3d2 user: dgp
2008-01-11
00:22 • Ticket [1868171fff]: 4 changes artifact: 94f0350fda user: dgp
00:19 • Ticket [1868171fff]: 4 changes artifact: 2338c04f84 user: dgp
00:12 • Ticket [1868171fff]: 4 changes artifact: 3e8a1fd8c3 user: dgp
2008-01-10
23:58 • Ticket [1868171fff]: 4 changes artifact: a7512b64ec user: dgp
04:28 • New ticket [1868171fff]. artifact: 6dc9db2daa user: nobody

AOLserver needs Tcl_GetMemoryInfo, but it's now MODULE_SCOPE

Closed / Fixed1868171fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2008-01-10 04:28:26
Tcl_GetMemoryInfo was public in the 8.4 train, but it's now declared as MODULE_SCOPE in 8.5.0.  AOLserver 4.5.0 requires this function.

Assuming that this was an intentional change meant to (further?) deprecate Tcl_GetMemoryInfo, it would at least be nice to have a config option to make the function visible for applications like AOLserver that need it.
dgpplain2008-01-10 23:58:05
Logged In: YES 
user_id=80530
Originator: NO


We should get this straightened out, I agree.

Appears the status of Tcl_GetMemoryInfo()
has long been ambiguous, since it does not
appear in any header file, public or internal.
dgpplain2008-01-11 00:12:18
Logged In: YES 
user_id=80530
Originator: NO


Also not documented, and not in any stubs table,
public or internal.

I see the routine entered the code base
just before Tcl 8.4b1 by hobbs.  Perhaps
he can clarify the intended status?
dgpplain2008-01-11 00:19:57
Logged In: YES 
user_id=80530
Originator: NO


Seems to me that MODULE_SCOPE is fairly clearly
the wrong thing for this routine, since there
are no callers of it within the Tcl "module".

Appears that the routines TclSetEnv() and
TclUnsetEnv() have a similar status.  Might
as well fix them too.
dgpplain2008-01-11 00:22:09
Logged In: YES 
user_id=80530
Originator: NO


And TclLookupSimpleVar()
dgpplain2008-02-26 22:15:47
Logged In: YES 
user_id=80530
Originator: NO


raising priority; would be good
to resolve this in time for 8.5.2.
gneumannplain2008-02-27 01:41:07
Logged In: YES 
user_id=1781785
Originator: NO

concerning: "it would at least be nice to have a config option to
make the function visible for applications like AOLserver that need it."

people will like to use aolserver with stock tcl-binaries (e.g. on debian),
so, an -DAOLSERVER might not be a good solution for them.
dgpplain2008-03-13 21:22:23
Logged In: YES 
user_id=80530
Originator: NO


raising priority again, since we're
getting 8.5.2 ready for release.
dkfplain2008-03-19 23:03:56
Logged In: YES 
user_id=79902
Originator: NO

Now we know who needs it, we can expose this. Not currently in stubs table as intended for use in applications only; open another bug if this needs changing. Not documenting it; RTFS to find out what it does if you care! :-)
dgpplain2008-03-20 02:35:05
Logged In: YES 
user_id=80530
Originator: NO


Looks like this routine is declared
unconditionally in tcl.h now, but is
only defined in the TCL_THREADS and
USE_THREAD_ALLOC configuration.  Could
that be a problem?
hobbsplain2008-03-20 02:48:57
Logged In: YES 
user_id=72656
Originator: NO

Yes, the API should unconditionally exist if it is in public decls.  In the case of non-thread-alloc, it should return a TCL_ERROR or some other mem info (if anything else is appropriate).  Perhaps a better approach is to take the function private for 8.5.
hobbs Open ticket [1868171fff]. [History diff]2008-03-20 02:48:58
dgpplain2008-03-20 02:58:24
Logged In: YES 
user_id=80530
Originator: NO


Taking it private would impose a significant
burden on AOLserver, right?  Having to add

#include "tclInt.h"

as well as all the build script machinery to
find and depend on private headers.?
hobbsplain2008-03-20 03:06:19
Logged In: YES 
user_id=72656
Originator: NO

I meant internal decls, rather than public ones.
dkfplain2008-03-20 06:29:04
Logged In: YES 
user_id=79902
Originator: NO

It's not in any stubs table, and it has a void return type.
dkfplain2008-03-20 16:54:13
Logged In: YES 
user_id=79902
Originator: NO

Now always defined. Declared only in circumstances where it won't panic.
Log in (anonymous is fine) to add a comment.