Tcl Source Code

View Ticket
Login
Ticket UUID: a06ed2007534afa81a5114aea802efae233dee0e
Title: granularity other than 1 allows interp to exceed limits
Type: RFE Version: 8.6.1 trunk
Submitter: pooryorick Created on: 2013-10-22 18:51:16
Subsystem: 20. [interp] Assigned To: dkf
Priority: 4 Severity: Minor
Status: Open Last Modified: 2013-11-12 14:44:04
Resolution: None Closed By: nobody
    Closed on:
Description:
The example below illustrates the problem.  Once an excess has been detected, the limit should be enforced as if the granularity was 1 until a new limit is set, at which point the original granularity should again become active.

% interp limit a command -granularity 2 -value 2
% a eval set toe knuckle
knuckle
% a eval set toe knuckle
command count limit exceeded
% a eval set toe knuckle
knuckle
% a eval set toe knuckle
command count limit exceeded
User Comments: dkf added on 2013-10-22 19:02:35:

Not urgent to fix as there was never a guarantee that limit enforcement points would actually occur at all possible points where they could occur.